package jp.kiroru_inc.rs_hello_world;

import jp.kiroru_inc.rs_hello_world.R;
import android.app.Activity;
import android.os.Bundle;

/**
 * This project licensed under the Apache Licence, Version 2.0.<br/>
 * <br/>
 * This project is a tutorial of the RenderScript.<br/>
 * This application is display a "Hello World" in your tapped location.
 * 
 * @author Selphy
 */
public class MainActivity extends Activity {
	private MainTextureView texture;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        texture = (MainTextureView) findViewById(R.id.texture);
    }

    @Override
    protected void onResume() {
    	super.onResume();
    	if (texture != null)
    		texture.resume();
    }
    
	@Override
	protected void onPause() {
		super.onPause();
		if (texture != null)
			texture.pause();
	}
}